import request from "./request"
const key = 'token'
export const setToken = (token) => {
  localStorage.setItem(key, token)
}

export const getToken = () => localStorage.getItem(key)

export const removeToken = (key) => {
  localStorage.removeItem(key)
}


// 测试token
export function test (articleId, pageNum, pageSize) {
  return request({
    method: 'GET',
    url: '/comment/getArticleComment',
    params: {
      articleId,
      pageNum,
      pageSize
    }
  })
}
